export function useDialog(title = '') {
  const dialogTitle = ref(title);
  const dialogVisible = ref(false);
  const dialogLoading = ref(false);

  const open = () => {
    dialogVisible.value = true;
  };
  const close = () => {
    dialogVisible.value = false;
  };
  return { dialogTitle, dialogVisible, dialogLoading, open, close };
}
